package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 菜谱对象 tb_menu
 * 
 * @author ruoyi
 * @date 2024-08-30
 */
public class Menu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** cate 0小学 1初中 */
    @Excel(name = "cate 0小学 1初中")
    private Long cate;

    /** old_id */
    @Excel(name = "old_id")
    private Long oldId;

    /** 标签 */
    @Excel(name = "标签")
    private Long tag;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 0正常 1删除 */
    @Excel(name = "0正常 1删除")
    private Integer deleted;

    private List<MenuDetail> details;

    public List<MenuDetail> getDetails() {
        return details;
    }

    public void setDetails(List<MenuDetail> details) {
        this.details = details;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCate(Long cate) 
    {
        this.cate = cate;
    }

    public Long getCate() 
    {
        return cate;
    }
    public void setOldId(Long oldId) 
    {
        this.oldId = oldId;
    }

    public Long getOldId() 
    {
        return oldId;
    }
    public void setTag(Long tag) 
    {
        this.tag = tag;
    }

    public Long getTag() 
    {
        return tag;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cate", getCate())
            .append("oldId", getOldId())
            .append("tag", getTag())
            .append("name", getName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
